keepalive: avoid diverging commits in forks#20
Open
dscho wants to merge 1 commit intogitgitgadget:mainfrom
Open
keepalive: avoid diverging commits in forks#20dscho wants to merge 1 commit intogitgitgadget:mainfrom
dscho wants to merge 1 commit intogitgitgadget:mainfrom
Conversation
In forks of `gitgitgadget-workflows`, we want to prefer merging the upstream branch over generating keepalive commits that diverge from upstream. To that end, run the workflow every week, and ensure that there is a commit at least every 4 weeks in forks, but every 3 weeks in the upstream repository. That way, the forks should always pick up the upstream's keepalive commit. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
6f70cff to
b8d1227
Compare
webstech
reviewed
Jan 16, 2026
| test 0 -lt $(git rev-list --count --since=3.weeks.ago HEAD) | ||
| test 0 -lt $(git rev-list --count --since=${{ github.event.repository.fork == true && '4' || '3' }}.weeks.ago HEAD) | ||
| then | ||
| echo "::notice::No need to keep alive, there were commits in the last three weeks" |
Collaborator
There was a problem hiding this comment.
Should this message be more specific? If I understand this correctly (stop laughing!) the notice will be issued more frequently for four weeks.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In forks of
gitgitgadget-workflows, we want to prefer merging the upstream branch over generating keepalive commits that diverge from upstream.To that end, run the workflow every week, and ensure that there is a commit at least every 4 weeks in forks, but every 3 weeks in the upstream repository. That way, the forks should always pick up the upstream's keepalive commit.